package com.yx.system.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.yx.system.entity.SysUser;
import com.yx.system.entity.SysUserToken;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/** 系统用户Token Mapper 接口
 * Created by wuye on 2017/11/24.
 */
@Mapper
@Repository
public interface SysUserTokenDao extends BaseMapper<SysUserToken> {

    SysUserToken queryByToken(String token);

    SysUserToken queryByUserId(Long userId);

    void save(SysUserToken sysUserToken);

    Integer update(SysUserToken sysUserToken);

}
